﻿using System.ComponentModel;
using System.Windows;
using Defarm.ViewModel;

namespace Defarm.View
{
    /// <summary>
    /// Interaction logic for LoginWindow.xaml
    /// </summary>
    public partial class LoginWindow : Window
    {
        public LoginWindow()
        {
            InitializeComponent();
        }

        private void LoginWindow_OnClosing(object sender, CancelEventArgs e)
        {
            if (!ViewModelLocator.Login.IsOk)
            {
                App.Current.MainWindow.Close();
            }
        }
    }
}
